$(document).ready(function() {
	$("#headform").hide();
	$("#tailform").hide();
	var agesubmit = $.cookie('agesubmit');
	if (agesubmit=='enter') {
		$("#message-screen").hide().css("visibility", "hidden");
		$("#box-message").hide().css("visibility", "hidden");
	}
	var PAYMENT_AMOUNT = $.cookie('PAYMENT_AMOUNT');
	var play = $.cookie('play');
	if (play=='head') {
		$("#spin").delay(2000).hide(0, function() {
			$("#taillost").show();
		});
		$('#taillostamount').text(PAYMENT_AMOUNT);
    }
    else if (play=='tail') {
		$("#spin").delay(2000).hide(0, function() {
			$("#headlost").show();
		});
		$('#headlostamount').text(PAYMENT_AMOUNT);
    }
});